import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'
// 引入 normalize.css
import 'normalize.css'
// 引入 全局样式
import '../src/styles/global.scss'
import { PersistGate } from 'redux-persist/integration/react'
import { persistor } from './stores'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
  <PersistGate loading={null} persistor={persistor}>
    <App />
  </PersistGate>
)

reportWebVitals()
